package com.mine.common.core.request;

import com.dtflys.forest.annotation.Get;
import com.dtflys.forest.annotation.Header;
import com.dtflys.forest.annotation.Query;
import com.mine.common.core.constants.Constants;
import com.mine.common.core.request.dto.PageResult;
import com.mine.common.core.request.dto.RealmPageRequest;
import com.mine.common.core.request.dto.RealmVO;
import com.mine.common.core.request.dto.ResponseData;

/**
 * 境界
 *
 * @author WangYX
 * @version 1.0.0
 * @date 2023/11/30 9:47
 */
public interface RealmClient {

    /**
     * 境界-分页
     *
     * @param request 请求参数
     * @param token   token
     * @return {@link ResponseData <PageResult< RealmVO >>}
     * @author WangYX
     * @date 2023/11/30 9:54
     */
    @Get("http://127.0.0.1:8080/realm/list")
    ResponseData<PageResult<RealmVO>> page(@Header(Constants.AUTHORIZATION) String token, @Query RealmPageRequest request);

}
